package com.atguigu.command2;

public class CookingCommand {
	
	public static void main(String[] args) {
		
		Breakfast food1 = new BreakfastForChangFen();
		Breakfast food2 = new BreakfastForHunTun();
		Breakfast food3 = new BreakfastForHeFen();

		Waiter fwy = new Waiter();

		fwy.setChangFen(food1);// 设置肠粉菜单
		fwy.setHunTun(food2); // 设置河粉菜单
		fwy.setHeFen(food3); // 设置馄饨菜单
		fwy.chooseChangFen(); // 选择肠粉
		fwy.chooseHeFen(); // 选择河粉
		fwy.chooseHunTun(); // 选择馄饨
	}
}


